package org.zachary.agent.domain.repository;

import org.zachary.agent.domain.aggregate_model.user.User;
import org.zachary.agent.infrastructure.repository.UserIdCountryProjection;

import java.util.List;
import java.util.Map;

public interface UserRepository {
    User findByUsername(String username);
    void save(User user);
    User findByUuid(String uuid);
    void improveUserInfo(String uuid,User user);

    User findById(Integer id);

    void updateAvatar(Integer userId, String url);

    Map<Integer, UserIdCountryProjection> loadCountyByIds(List<Integer> ids);
}
